/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.breeze.dao;

import com.breeze.entity.Tbill;
import java.util.List;

/**
 *
 * @author huateng
 */
public class BillDao extends BaseDao{
    
    private final String query_bill="tbill.selectByPage";
    private final String update_bill="tbill.updateRecords";
    private final String insert_bill="tbill.insertObject";
    private final String delete_bill="tbill.deleteByCondition";
    private final String query_count="tbill.selectCount";
    
    public int deleteBill(Tbill bill){
        return delete(delete_bill, bill);
    }
    
    public Tbill queryForBill(Tbill bill){
        return (Tbill)queryForObject(query_bill, bill);
    }
    
    public List queryForBillList(Tbill bill){
        return queryForList(query_bill, bill);
    }
    
    public int updateBill(Tbill bill){
        return update(update_bill, bill);
    }
    
    public Object insertBill(Tbill bill){
        return insert(insert_bill, bill);
    }
    
    public long queryCount(Tbill user){
        return (Long)queryForObject(query_count, user);
    }
}
